<?php

namespace App\Http\Controllers;

use Illuminate\Support\Facades\Storage;

class CommonController extends Controller
{
    // 写一个上传文件的方法 使用laravel自带的文件上传类
    public function upload(){
        $storage = Storage::disk("aliyun");
        $storage->put('test.txt', 'Hello World');
    }
}
